<template>
	<view>
		<my-login v-if="!token"></my-login>
		<my-user v-else></my-user>
	</view>
</template>

<script>
	import tabbarMix from '@/mixins/tabbar.js'
	import myUser from './components/my-userInfo.vue'
	import myLogin from './components/my-login.vue'
	import {
		mapState
	} from 'vuex'
	export default {
		mixins: [tabbarMix],
		data() {
			return {

			};
		},
		components: {
			myLogin,
			myUser
		},
		computed: {
			...mapState('my_user', ['token'])
		}
	}
</script>

<style lang="scss">

</style>
